// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Axios from 'axios'
import Common from './components/Common';

Vue.config.productionTip = false;
Vue.prototype.isWX = navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == ("micromessenger");
Vue.prototype.isAndroid = navigator.userAgent.toLowerCase().indexOf('android') > -1 || navigator.userAgent.toLowerCase().indexOf('linux') > -1;
Vue.prototype.isIos = navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
Vue.prototype.host = "https://q0.gogoh5.com";
Vue.prototype.cdn = "https://c2.gogoh5.com/gsf";
Vue.prototype.urls = {
  articleShare: Vue.prototype.host + '/article/share',
  downloadApp: 'https://a.app.qq.com/o/simple.jsp?pkgname=com.yiqimmm.apps.android',
};
Vue.prototype.$http = Axios;
Vue.prototype.$common = new Vue(Common);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
});

